import request from '@/utils/request'

export default {
  //1.讲师列表
  getTeacherList(current,limit,params){
    return request({
      url:`/admin/edu/teacher/pageTeacherCondition/${current}/${limit}`,
      method:'get',
      params:params
    })
  },
  removeTeacher(id){
    return request({
      url:`/admin/edu/teacher/${id}`,
      method:'delete'
    })
  },
  addTeacher(teacher){
    return request({
      url:'/admin/edu/teacher/addTeacher',
      method:'post',
      data:teacher
    })
  },
  updateTeacher(teacher){
    return request({
      url:'/admin/edu/teacher/updateTeacher',
      method:'post',
      data:teacher
    })
  },
  getTeacher(id){
    return request({
      url:`/admin/edu/teacher/${id}`,
      method:'get'
    })
  }
}
